﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Agenda
{
   public class AgendaSist : Observable
    {

        private static readonly AgendaSist Instance = new AgendaSist();
        
        public List<Contacto> ListaDeContactos { set; get; }
       

        public static AgendaSist GetInstance()
        {
            return Instance;
           
        }

        public AgendaSist()
        {
            this.ListaDeContactos = new List<Contacto>();
            ListaObervers = new List<IObserver>();

        }

        public void AgregarContacto(Contacto contacto)
        {
            this.ListaDeContactos.Add(contacto);
            NotifyAll();

        }
        
        



    }
}
